package com.yoso.shop.application.service;


import com.yoso.base.service.IBaseService;
import com.yoso.shop.domain.user.ConsumerEntityExample;
import com.yoso.shop.interfaces.vo.user.ConsumerVo;

/**
 * @author yuluo
 * @date 2021-06-25 14:53
 */
public interface IConsumerService extends IBaseService<ConsumerVo, ConsumerEntityExample> {
    /**
     * 用户注册
     *
     * @param v2E
     * @return
     */
    boolean register(ConsumerVo v2E);

    /**
     * 用户登录
     *
     * @param entity
     * @return
     */
    ConsumerVo login(ConsumerVo entity);

    /**
     * 根据注册账号查询（username）
     */
    ConsumerVo findByUsername(String username);
}
